package com.mininglamp.hbga.adapter.demo;

import com.alibaba.fastjson.JSONObject;
import com.mininglamp.hbga.adapter.Adapter;
import com.mininglamp.hbga.adapter.BaseAdapter;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by kevin on 2017/8/6.
 */
@Adapter(name = "A", desc = "调用scopa tuning接口获取实体人信息")
public class S1001Adapter extends BaseAdapter {

    private static Logger logger = LoggerFactory.getLogger(S1001Adapter.class);

    @Override
    public Object call() {
        // 从数据库获取信息

        // test
        String sfzh = request.getParameter("sfzh");
        JSONObject json = new JSONObject();
        json.put("sfzh", sfzh);
        json.put("xm", "张三");
        json.put("age", 25);

        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        return json;
    }

}
